﻿using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using ATMConst;

namespace Package
{
	[Serializable]
    public class CellPackage : Package
    {
		public int linkPort { get; private set; }
		public CellPackage(int port, ATMCell.AtmCell data) :
            base(Const.Code.CELL, data)
        {
			linkPort = port;
        }
	/*	static public CellPackage[] deserializeCellPackageArray(byte[] bytes)
		{
			var bFormatter = new BinaryFormatter();
			var stream = new MemoryStream(bytes);
			Package package = bFormatter.Deserialize(stream, null) as Package;
		}*/
    }
}
